/*
 * Genero.java
 * 
 * Versao: 1.0.0
 *
 * Data: 28/11/2011
 *
 * Copyright (C) 2011
 * wsh-systems.
 * Todos os direitos reservados.
 */
package com.wsh.playeronline.persistence.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.wsh.playeronline.constants.EntityConstants;

/**
 * Entity implementation class for Entity: Genero.
 * 
 * @author Washington
 * @version 1.0, 28/11/2011
 */
@Entity
@Table(name = "TB_GENERO")
public class Genero implements Serializable {

	private static final long serialVersionUID = 6774021413544985958L;

	@Id
	@GeneratedValue
	@Column(name = "ID_GENERO", nullable = false)
	private Long codigo;	
	
	@Column(name = "DESC_GENERO", nullable = false, length = EntityConstants.NUMBER_DEZ)
//	@NotEmpty(message = ValidationConstants.VALIDA)
	private String genero;
	
	/**
	 * Get to codigo.
	 * 
	 * @return codigo
	 */
	public Long getCodigo() {
		return codigo;
	}
	/**
	 * Set to codigo.
	 * 
	 * @param codigo to set codigo
	 */
	public void setCodigo(Long codigo) {
		this.codigo = codigo;
	}
	/**
	 * Get to genero.
	 * 
	 * @return genero
	 */
	public String getGenero() {
		return genero;
	}
	/**
	 * Set to genero.
	 * 
	 * @param genero to set genero
	 */
	public void setGenero(String genero) {
		this.genero = genero;
	}
	
}